package com.bootdo.lvyou.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 打卡
 * 
 * @author lujingqian
 * @email 965858129@qq.com
 * @date 2019-10-14 17:25:32
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class LvyouPunchCard extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//id
	 @NotColumn 	@HapiFeild("id")
	private Long id;

	@HapiFeild("审核")
	private Long checks;
	
	//景区id
		@HapiFeild("景区id")
	private Long scenicId;
	
	//景区名称
		@HapiFeild("景区名称")
	private String scenicName;
	
	//打卡人id
		@HapiFeild("打卡人id")
	private Long memberId;
	
	//打卡人头像
		@HapiFeild("打卡人头像")
	private String memberAvatar;
	
	//打卡人名称
		@HapiFeild("打卡人名称")
	private String memberName;
	
	//创建时间
		@HapiFeild("创建时间")
	private Date createTime;
	
	//内容
		@HapiFeild("内容")
	private String content;
	
	//图片
		@HapiFeild("图片")
	private String imgUrl;
	
	//回复者id
		@HapiFeild("回复者id")
	private Long responseId;
	
	//回复者名称
		@HapiFeild("回复者名称")
	private String responseName;
	
	//回复者头像
		@HapiFeild("回复者头像")
	private String responseAvatar;
	
	//父id
		@HapiFeild("父id")
	private Long parentId;

	//父id
	@HapiFeild("父id")
	private String cardType;

	//顶级id
	@HapiFeild("顶级id")
	private Long topId;
	//打卡项
		@NotColumn
	private LvyouPunchCard lvyouPunchCard;


	//是否已读  0未读 1已读
	@HapiFeild("是否已读")
	private Integer isRead;
		@NotColumn
	private HashMap<String ,Object> map;
		@NotColumn
	private String [] mediaUrlList;

	public Long getCheck() {
		return checks;
	}

	public void setCheck(Long check) {
		this.checks = check;
	}

	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public Long getTopId() {
		return topId;
	}

	public void setTopId(Long topId) {
		this.topId = topId;
	}

	public LvyouPunchCard getLvyouPunchCard() {
		return lvyouPunchCard;
	}

	public void setLvyouPunchCard(LvyouPunchCard lvyouPunchCard) {
		this.lvyouPunchCard = lvyouPunchCard;
	}

	public Integer getIsRead() {
		return isRead;
	}

	public void setIsRead(Integer isRead) {
		this.isRead = isRead;
	}

	public String[] getMediaUrlList() {
		return mediaUrlList;
	}

	public void setMediaUrlList(String[] mediaUrlList) {
		this.mediaUrlList = mediaUrlList;
	}

	public LvyouPunchCard(){
    
    	this.createTime = new Date();
    }

	public HashMap<String, Object> getMap() {
		return map;
	}

	public void setMap(HashMap<String, Object> map) {
		this.map = map;
	}

	/**
	 * 设置：id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：景区id
	 */
	public void setScenicId(Long scenicId) {
		this.scenicId = scenicId;
	}
	/**
	 * 获取：景区id
	 */
	public Long getScenicId() {
		return scenicId;
	}
	/**
	 * 设置：景区名称
	 */
	public void setScenicName(String scenicName) {
		this.scenicName = scenicName;
	}
	/**
	 * 获取：景区名称
	 */
	public String getScenicName() {
		return scenicName;
	}
	/**
	 * 设置：打卡人id
	 */
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}
	/**
	 * 获取：打卡人id
	 */
	public Long getMemberId() {
		return memberId;
	}
	/**
	 * 设置：打卡人头像
	 */
	public void setMemberAvatar(String memberAvatar) {
		this.memberAvatar = memberAvatar;
	}
	/**
	 * 获取：打卡人头像
	 */
	public String getMemberAvatar() {
		return memberAvatar;
	}
	/**
	 * 设置：打卡人名称
	 */
	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}
	/**
	 * 获取：打卡人名称
	 */
	public String getMemberName() {
		return memberName;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：内容
	 */
	public void setContent(String content) {
		this.content = content;
	}
	/**
	 * 获取：内容
	 */
	public String getContent() {
		return content;
	}
	/**
	 * 设置：图片
	 */
	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}
	/**
	 * 获取：图片
	 */
	public String getImgUrl() {
		return imgUrl;
	}
	/**
	 * 设置：回复者id
	 */
	public void setResponseId(Long responseId) {
		this.responseId = responseId;
	}
	/**
	 * 获取：回复者id
	 */
	public Long getResponseId() {
		return responseId;
	}
	/**
	 * 设置：回复者名称
	 */
	public void setResponseName(String responseName) {
		this.responseName = responseName;
	}
	/**
	 * 获取：回复者名称
	 */
	public String getResponseName() {
		return responseName;
	}
	/**
	 * 设置：回复者头像
	 */
	public void setResponseAvatar(String responseAvatar) {
		this.responseAvatar = responseAvatar;
	}
	/**
	 * 获取：回复者头像
	 */
	public String getResponseAvatar() {
		return responseAvatar;
	}
	/**
	 * 设置：父id
	 */
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	/**
	 * 获取：父id
	 */
	public Long getParentId() {
		return parentId;
	}


	@Override
	@JsonIgnore
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
